#!/usr/bin/python
# -*- coding: utf-8 -*-

import os
import Blender
from Blender import Scene
from Blender.Scene import Render

FILE = os.path.join('blend', 'aux.txt')

f = open(FILE, 'w')

scn= Scene.GetCurrent()
context=scn.getRenderingContext()

f.write(str(context.sFrame))
f.write(' ')
f.write(str(context.endFrame()))

f.close()
